package cn.kai.basic.query;

import lombok.Data;

/**
 * @Author Kai
 * @Date 2022/6/1 12:53
 * @PackageName:cn.kai.basic.util
 * @ClassName: page
 * @Description: 分页公共类
 * @Version 1.0
 */

@Data
public class BaseQuery {
    private Integer currentPage = 1;
    private Integer pageSize = 5;
    private String keyword;

    public Integer getStartPage(){
        return (this.currentPage - 1) * this.pageSize;
    }
}
